<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        .panel{
            max-width: 300px;
            border: 1px solid #999;
            padding: 15px;
            margin-bottom: 15px;
        }
        .panel > *{
            padding: 15px;
        }
        .panel .title{
            border-bottom: 1px solid #999;
        }
        .panel .footer{
            border-top: 1px solid #999;
        }
    </style>
</head>
<body>
    <div id="app">
        <panel>
            <div slot="title">标题</div>
            <div slot="content">是是是是</div>
            <div slot="footer">footer</div>
        </panel>
    </div>
    <template id="panel-template">
        <div class="panel">
            <div class="title">
                <slot name = "title"></slot>
            </div>
            <div class="content">
                <slot name = "content"></slot>
            <div class="footer">
                <slot name = "footer"></slot>
            </div>
        </div>
    </template>

    <script src="https://cdn.bootcss.com/vue/2.4.2/vue.min.js"></script>
    <script src="main.js"></script>
</body>
</html>
